package br.com.tcc.systemdx.persistence.hibernate;

import java.util.List;

import org.hibernate.criterion.Restrictions;
import org.springframework.stereotype.Repository;
import org.springframework.transaction.annotation.Transactional;

import br.com.tcc.systemdx.domain.AtributoFatorRelevante;
import br.com.tcc.systemdx.persistence.AtributoFatorRelevanteDAO;

@Repository(AtributoFatorRelevanteDAO.BEAN_NAME)
@Transactional
public class AtributoFatorRelevanteHibernateDAOImpl extends
		AbstractEntityHibernateDAOImpl<AtributoFatorRelevante> implements
		AtributoFatorRelevanteDAO {

	/**
	 * 
	 */
	private static final long serialVersionUID = -552902488906207936L;

	//@Override
	public List<AtributoFatorRelevante> findAtributosRelacionados(
			Long atributoPaiId) {
		return findByCriteria(Restrictions.eq("parent.id", atributoPaiId));
	}
	

}
